var app = angular.module('addressbookList', []);
app.controller('listController', function ($scope, $http) {
    getData();
    $scope.queryStr = "";

    function getData() {
        $http.post("/smtool_project/wxapp/addressbook/index", {
                "queryStr": $scope.queryStr
        }).then(function (result) {console.log(result)
            $scope.datas = result ? result.data.list : "";
        });
    };

    $scope.call = function (phone) {console.log(phone)
        tel:phone;
    };
    $scope.query = function () {
        getData();
    };
    $scope.toDetail = function (rowId) {
        // location.href="../stockrecommend/stockrecommenddetail?rowId="+rowId;
        location.href = "detail?action=detail&rowId=" + rowId;
    };
});

